import XMonad
-- import XMonad.Config.Kde

import XMonad.Util.EZConfig (additionalKeysP)
import XMonad.Util.Run (spawnPipe)

import XMonad.Hooks.DynamicLog (dynamicLogWithPP, xmobarProp, xmobarPP, shorten, PP(..))
import XMonad.Hooks.ManageDocks (avoidStruts, docks, manageDocks, ToggleStruts(..))
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.Minimize

import Vars
import Keybinds
import Startup
import ManageHookFloat
import Layouts

main :: IO ()
main = do
  xmonad $ docks . ewmhFullscreen . ewmh $ def
    { modMask         = mod4Mask
    -- , manageHook      = manageDocks <+> manageHook kdeConfig <+> myManageHook <+> (isFullscreen --> doFullFloat)
    , manageHook      = manageDocks <+> myManageHook <+> (isFullscreen --> doFullFloat)
    , startupHook     = myStartupHook
    , handleEventHook = minimizeEventHook
    , terminal    = defTerm
    , borderWidth = myBorderWidth
    , workspaces  = myWorkspaces
    , normalBorderColor  = myNormalBorderColor
    , focusedBorderColor = myFocusedBorderColor
    , layoutHook  = myLayout
    }
    `additionalKeysP` myAddKeys
